package com.cyy.proxy_pattern;

/**
 * 干娘的酒馆
 */
public class GanNiang implements Jiu{
    //声明酒的名字
    private String name;

    public GanNiang() {
    }

    public GanNiang(String name) {
        this.name = name;
        aa();
    }

    @Override
    public void show() {
        System.out.println("卖出一坛" + name);
    }
    //定义一个aa()方法提示大奔来摆摊了
    public void aa(){
        System.out.println("大奔来摆摊了！");
    }
}
